//webSocket连接状态
export const WsState = {
    Connecting: 0,
    Open: 1,
    Closing: 2,
    Closed: 3,
};

//websocket连接类型
export const WsConnectType = {
    Client: 1,
    Server: 2,
};

//Websocket cmd to string
export const Command2EnStr = {
    0: 'Default',
    1000: 'HeartBeat',
    2001: 'StartALLVfd',
    2002: 'StopALLVfd',
    2003: 'StartAI',
    2008: 'SetFRange'
};

//Protobuf结构体的数据类型
export const AnyType = {
    Public: 'Public',
    FrequencyRange: 'FrequencyRange',
    Any: 'google.protobuf.Any',
};

export const ToastTime = {
    BigLong: 5,
    Long: 3,
    Short: 1,
};

//事件总线类型
export const EmitterType = {
    WsHeartbeat: 0,//websocket心跳事件
    WsEvent: 1,//Websocket事件
    HttpEvent: 2,//http事件
};